﻿using AutoMapper;
using RbacPermissionManage.Application.Admins.Dto;
using RbacPermissionManage.Application.Menus.Dto;
using RbacPermissionManage.Application.Roles.Dto;
using RbacPermissionManage.DoMain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RbacPermissionManage.Application
{
    public class RbacProfile:Profile
    {
        public RbacProfile()
        {
            CreateMap<Admin, AdminListDto>();
            CreateMap<AdminCreateDto, Admin>();
            CreateMap<AdminUpdateDto, Admin>();
            CreateMap<LoginDto, Admin>();
            CreateMap<Menu, TreeDto>();
            CreateMap<Role, RoleListDto>();
            CreateMap<RoleCreateDto, Role>();
            CreateMap<RoleUpdateDto, Role>();
            CreateMap<Menu, TreeDto>();
            CreateMap<MenuUpdateDto, Menu>();
            CreateMap<MenuCreateDto, Menu>();
        }
    }
}
